package com.qfedu.api.feign.fallback;

import com.qfedu.api.feign.UserCheckClient;
import com.qfedu.fmmall.beans.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;

@Component
public class UserCheckClientFallback implements UserCheckClient {


    @Override
    public Users check(String username) {
        //如果调用user-check服务失败则返回null
        return null;
    }
}
